/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

/**
 *
 * @author Young Ran
 */
public class UserDetail {
    private int id;
    private String name;
    private String age;
    private boolean sex;
    private String phone;
    private String email;
    private String username;

    public UserDetail() {
    }

    public UserDetail(int id, String name, String age, boolean sex, String phone, String email, String username) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.phone = phone;
        this.email = email;
        this.username = username;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        String s;
        if(sex==true) s="Female"; else s="Male";
        return "<html><font size='4' color='white'><p style='padding-left:10px;'>Name: " + name + "<br />Age: " + age + "<br />Sex: " + s + "<br />Phone: " + phone + "<br />Email: <br />&nbsp;" + email + "<br />Username: " + username + "</p></font></html>";
    }
    
    
}
